package com.pm.megapinhata.client.factory;

import java.io.Serializable;


import com.google.gwt.core.client.GWT;
import com.pm.megapinhata.client.Messages;
import com.pm.megapinhata.client.architecture.Registry;

public class I18nFactory implements Serializable {

	private I18nFactory() {
	}
	
	public static Messages getComponentesDominioPadrao() {
		String componentName = Messages.class.getName();
		if (Registry.get(componentName) == null) {
			Registry.register(componentName,GWT.create(Messages.class));
		}
		return Registry.get(componentName);
	}

}
